﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Commissioning
{
    [NHibernateEntity(Table = "CommissionBonusTeam")]
    public class CommissionBonusTeam : ITrackable
    {
        public CommissionBonusTeam() { }

        [PrimaryKey]
        public virtual int Id { get; set; }
        
        [BelongsTo(Column = "ID_CommissionSchema")]
        public virtual CommissionSchema CommissionSchema { get; set; }

        [Property]
        public virtual double ProcentValue { get; set; }

        [Property]
        public virtual double? GWPMin { get; set; }

        [Property]
        public virtual double? GWPMax { get; set; }


        [Property]
        public virtual CommissionZone CommissionZone { get; set; }


        [BelongsTo(Column = "ID_Role")]
        public virtual Role Role { get; set; }


        [Property]
        public virtual DateTime InsertDate { get; set; }

        [Property]
        public virtual string InsertBy { get; set; }

        [Property]
        public virtual DateTime? ModifiedDate { get; set; }

        [Property]
        public virtual string ModifiedBy { get; set; }
    }

    
}
